Perform hostname resolution via the DNS servers associated with |network|.
All arguments (apart from |network|) are used identically as those passed
to getaddrinfo(3). Return and error values are identical to those of
getaddrinfo(3), and in particular gai_strerror(3) can be used as expected.
Similar to getaddrinfo(3):
- |hints| may be NULL (in which case man page documented defaults apply)
- either |node| or |service| may be NULL, but not both
- |res| must not be NULL
Perform hostname resolution via the DNS servers associated with |network|.
All arguments (apart from |network|) are used identically as those passed to getaddrinfo(3). Return and error values are identical to those of getaddrinfo(3), and in particular gai_strerror(3) can be used as expected. Similar to getaddrinfo(3): - |hints| may be NULL (in which case man page documented defaults apply) - either |node| or |service| may be NULL, but not both - |res| must not be NULL
This is the equivalent of: android.net.Network#getAllByName()